const express = require('express');
const router = express.Router();
//导入服务层对象
const service =require('../services/userservices');


router.get('/list',service.list)

router.post('/checkUser',service.login)

router.post('/add',service.add)

router.get('/del',service.delete)

router.get('/query',service.query)

router.post('/update',service.update)

module.exports = router;
